package com.wgchao.amc.entity.base;

import javax.persistence.*;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-10-30 
 * @用途  
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="sys_base_ur" )
public class SysBaseUr  implements Serializable {

	private static final long serialVersionUID =  7259037008897755977L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "id" )
	private Long id;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	private Long userId;

	/**
	 * 用户所在部门拥有的角色ID
	 */
   	@Column(name = "role_id" )
	private Long roleId;

	/**
	 * 部门ID
	 */
	@Column(name = "group_id" )
	private Long groupId;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 删除标志
	 */
   	@Column(name = "del" )
	private boolean del;

	/**
	 * 删除时间
	 */
   	@Column(name = "del_time" )
	private Date delTime;

}
